package com.jikexueyuan;
import com.android.uiautomator.core.UiDevice;
import com.android.uiautomator.testrunner.UiAutomatorTestCase;

import android.os.RemoteException;
public class test1 extends UiAutomatorTestCase {
	public void testDemo() {
		UiDevice.getInstance().pressHome();
		sleep(2000);
	}
	public void testMenu() {
		UiDevice.getInstance().pressMenu();
		sleep(2000);
	}
	public void testRecent() throws RemoteException{
		UiDevice.getInstance().pressRecentApps();
		sleep(2000);
	}                     
	public static void main(String[] args) {
		String jarName="test";
		String testClass = "com.jikexueyuan.test1";
		String testName = "testDemo";
		String androidID="1";
		new UiAutomatorHelper(jarName,testClass,testName,androidID); 
	}
}
